//
//  FirstModel.m
//  212--Homework  QQy音乐  阿里星球
//
//  Created by 冀永金 on 16/8/12.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "FirstModel.h"
#import "SecondModel.h"
@implementation FirstModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<SecondModel *> *dataArray = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *dic in valueArray) {
            SecondModel *second = [SecondModel modelWithDic:dic];
            [dataArray addObject:second];
        }
        _data = dataArray;
    }
    
}
@end
